package app.common.utils.cjt;

import lombok.Data;

/**
 * 获取token的响应
 * <pre>{@code
 *     //
 *     //    "code": "200",
 *     //    "message": "成功",
 *     //    "result": {
 *     //        "access_token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhY2Nlc3NfdG9rZW4iOiJkYTY3MGY0Mi02YjA1LTRmMTAtODI2OC0wNWU1NmZiNjMxYzQiLCJzdWIiOiJpc3YiLCJhdWQiOiJpc3YiLCJuYmYiOjE1ODkzMzcwMzQsImFwcElkIjoiNTkiLCJzY29wZSI6ImJhc2ljIiwiaXNzIjoiY2hhbmpldCIsImV4cCI6MTU4OTY4MjYzNCwidXNlcklkIjoiNjEwMDA0MjY3NTgiLCJpYXQiOjE1ODkzMzcwMzQsIm9yZ0lkIjoiOTAwMDExOTg4NjIifQ.snIlCGWfMTIJ9PUgnlBRlc6GAcyIXswneJUdh6pGx1U",
 *     //        "refresh_token": "ddb40sdc95ss410896c8270e4932dfs2",
 *     //        "scope": "basic",
 *     //        "expires_in": 345600,
 *     //        "user_id": "61000426758",
 *     //        "org_id": "90001198862",
 *     //        "app_name": "accounting",
 *     //        "refresh_expires_in": 2512799,
 *     //        "sid":"6",
 *     //        "user_auth_permanent_code": "a5610cb8148c4da8a46c9fbdf3f6ff7d"
 *     //    }
 * }</pre>
 */
@Data
public class AuthV2GetTokenResult {

    /**
     * 访问的token
     */
    private String access_token;

    /**
     * 作用域
     */
    private String scope;

    /**
     * 过期时间
     */
    private Integer expires_in;

    /**
     * 用户编号
     */
    private String user_id;

    /**
     * 组织编号
     */
    private String org_id;

    /**
     * 应用名称
     */
    private String app_name;

    /**
     * 刷新时间
     */
    private Integer refresh_expires_in;

    /**
     * 消息编号
     */
    private String sid;

    /**
     * 用户临时授权码
     */
    private String user_auth_permanent_code;

}